package com.forum.module.blog.controller.article.vo;

import com.forum.framework.common.pojo.PageParams;
import io.swagger.v3.oas.annotations.media.Schema;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.forum.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * 功能:
 * 作者:ouyzh
 * 日期:2025/3/2 20:59
 */
@Schema(description = "博客管理 - 文章分页 请求视图")
public class ArticlePageReqVO extends PageParams {

    /**
     * 文件标题
     */
    @Schema(description = "文件标题", example = "这个一篇文章")
    private String title;

    /**
     * 文章摘要
     */
    @Schema(description = "文章摘要", example = "这个一篇文章")
    private String summary;

    /**
     * 文章内容
     */
    @Schema(description = "文章内容", example = "这个一篇文章")
    private String content;

    /**
     * 文章状态（0：草稿 1：发布 2：审核中）
     */
    @Schema(description = "文章状态（0：草稿 1：发布 2：审核中）", example = "1")
    private Integer status;

    @Schema(description = "创建时间", example = "2024-01-02 12:00:00")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "当前登录用户", example = "1")
    private Long userId;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public LocalDateTime[] getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime[] createTime) {
        this.createTime = createTime;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
}
